-- GENERATED SPELL FOR [Dalaran Conjuror] --


function spell0_1915(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1915', 3000, 1)
end

function spell1_1915(pUnit, Event) --@Summon Voidwalker,Self--
pUnit:FullCastSpellOnTarget(12746,pUnit)
pUnit:RegisterEvent('Sorts_1915', 557, 1)
end

function Sorts_1915(pUnit, Event)
local choix_sorts_1915 = math.random(0, 1)
if choix_sorts_1915 == 0 then
pUnit:RegisterEvent('spell0_1915', 1, 1)
end
if choix_sorts_1915 == 1 then
pUnit:RegisterEvent('spell1_1915', 1, 1)
end
end

function mob1915_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1915', math.random(1500, 3000), 1)
end

function mob1915_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1915_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1915_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1915, 1, 'mob1915_Action')
RegisterUnitEvent(1915, 2, 'mob1915_Leave')
RegisterUnitEvent(1915, 3, 'mob1915_Kill')
RegisterUnitEvent(1915, 4, 'mob1915_Die')
